package cn.edu.scau.cmi.linjinyong.mybatis.domain;

import java.util.Set;

public class Student {

	private Long id;
	private Teacher teacher;
	private String name;
	private String major;
	private Integer confirm;

	public Student() {
	}

	public Student(Long id, Teacher teacher, String name, String major, Integer confirm) {
		this.id = id;
		this.teacher = teacher;
		this.name = name;
		this.major = major;
		this.confirm = confirm;
	}

	public void setToEmpty(){
		this.id = null;
		this.teacher = null;
		this.name = null;
		this.major = null;
		this.confirm = null;
	}
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Teacher getTeacher() {
		return teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMajor() {
		return major;
	}

	public void setMajor(String major) {
		this.major = major;
	}

	public Integer getConfirm() {
		return confirm;
	}

	public void setConfirm(Integer confirm) {
		this.confirm = confirm;
	}

	@Override
	public String toString() {
		return "Student{" +
				"id=" + id +
				", teacher=" + teacher +
				", name='" + name + '\'' +
				", major='" + major + '\'' +
				", confirm=" + confirm +
				'}';
	}
}
